package com.anorak.betsy.retro;

import okhttp3.RequestBody;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import okio.ByteString;
import retrofit2.Call;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Run {
    public static void main(String[] args) {
        File file = new File("/Users/anorak/Documents/JavaProject/standalone/Akby/musicflit/src/main/java/com/anorak/betsy/shell/put1/item.bin");
        byte[] binaryData = null;
        try {
            FileInputStream fileInputStream = new FileInputStream(file);
            binaryData = new byte[(int) file.length()];
            fileInputStream.read(binaryData);
            fileInputStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        RequestBody requestBody = RequestBody.create(MediaType.parse("application/json"), binaryData);
        System.out.println();
    }
}
